﻿@model CZTopComputers.Models.ProductsListViewModel

@{
    ViewBag.Title = "Index";
}
<div style="font-size:1.5em">@Html.ActionLink("Design a PC Yourself", "Case", "CustomPC")</div>
<div id="nav">
      <ul>
        <li class="cat">Pages</li>
        @for (int i = 1; i <= Model.PagingInfo.TotalPages; i++)
    {
    <li>@Html.ActionLink("Page "+i.ToString(), null, new { controller="Product", action="Index", page=i, category=Model.CurrentCategory })</li>
    }
        <li class="cat">Categories</li>
        @foreach (var cat in Model.Categories)
        {
        <li>@Html.ActionLink(cat.ToString(), null, new { controller="Product", action="Index", category=cat.ToString()}) </li>
        }
        <!--li><a href="http://www.free-css.com/">Cat 1</a></li>
        <li><a href="http://www.free-css.com/">Cat 2</a></li>
        <li><a href="http://www.free-css.com/">Cat 3</a></li>
        <li><a href="http://www.free-css.com/">Cat 4</a></li>
        <li><a href="http://www.free-css.com/">Cat 5</a></li-->
      </ul>
    </div><br/>
@foreach (var p in Model.Products)
{Html.RenderPartial("ProductSummary", p);<br />}
<br/>
<div id="nav">
      <ul>
        <li class="cat">Pages</li>
        @for (int i = 1; i <= Model.PagingInfo.TotalPages; i++)
    {
    <li>@Html.ActionLink("Page "+i.ToString(), null, new { controller="Product", action="Index", page=i, category=Model.CurrentCategory })</li>
    }
        <li class="cat">Categories</li>
        @foreach (var cat in Model.Categories)
        {
        <li>@Html.ActionLink(cat.ToString(), null, new { controller="Product", action="Index", category=cat.ToString()}) </li>
        }
        <!--li><a href="http://www.free-css.com/">Cat 1</a></li>
        <li><a href="http://www.free-css.com/">Cat 2</a></li>
        <li><a href="http://www.free-css.com/">Cat 3</a></li>
        <li><a href="http://www.free-css.com/">Cat 4</a></li>
        <li><a href="http://www.free-css.com/">Cat 5</a></li-->
      </ul>
    </div>




<!--div class="pager">
    //@for (int i = 1; i <= Model.PagingInfo.TotalPages; i++)
    {
    //@Html.ActionLink(i.ToString(), null, new { controller="Product", action="Index", page=i });
    }
</div-->